Skip to content

fix: follow symlinks when bundling content - #955

Merged
tdstein merged 3 commits into
mainfrom
symphony/posit-dev_rsconnect-python_414-cdea88f84a0fa2d4
Nov 12, 2026
Merged

tdstein merged 3 commits into
mainfrom
symphony/posit-dev_rsconnect-python_414-cdea88f84a0fa2d4

Conversation

@tdstein

@tdstein tdstein commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

 app/
-  app.py -> ../source.py  # archived as a broken link
-  data -> ../data         # omitted
+  app.py                  # target contents
+  data/foo.csv            # target contents

Follow linked directories and archive linked files as regular files, preserving bundle paths and matching manifest checksums. Exclusions and config protection still apply, and directory loops produce a warning.

Evidence

  • Before: file links were archived as links and linked directories were omitted.
  • After: uv run pytest tests/test_bundle.py -q passes (160 tests), covering manifests, archives, exclusions, loops, and config protection. Ruff checks pass. Windows CI will verify the newline-independent fixtures.

Merge Danger

Door: two-way

Blast Radius: bundling

Closes #414

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-12 14:28 UTC

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11252 10032 89% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/bundle.py 89% 🟢
TOTAL 89% 🟢

updated for commit: 9da1ceb by action🐍

@tdstein tdstein mentioned this pull request Nov 10, 2026
1 of 5 tasks

@tdstein tdstein left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows tests are failing with:

FAILED tests/test_bundle.py::test_api_bundle_keeps_valid_symlink - AssertionError: assert b'data\r\n' == b'data\n'
  
  At index 4 diff: b'\r' != b'\n'
  
  Full diff: (-: missing in left side, +: extra in left side)
  - (b'data\n')
  + (b'data\r\n')
  ?         ++
FAILED tests/test_bundle.py::test_linked_content_in_shiny_manifest_and_bundles - AssertionError: assert '6768521f78ea7aa61a34fc9f51ff192e' == 'a9af1a5b719a9a4c3caf671fec09459b'

@joshyam-k joshyam-k mentioned this pull request Nov 10, 2026
@tdstein
tdstein enabled auto-merge (squash) November 12, 2026 14:19
@tdstein
tdstein merged commit 471afbf into main Nov 12, 2026
29 checks passed
@tdstein
tdstein deleted the symphony/posit-dev_rsconnect-python_414-cdea88f84a0fa2d4 branch November 12, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support following symlinks

2 participants